﻿@model CustomerAddressEditModel
@using Nop.Web.Models.Customer;
@{
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Account").Text);
}
@section left
{
    @Html.Partial("MyAccountNavigation", Model.NavigationModel, new ViewDataDictionary())
}

@using (Html.BeginForm())
{


    <div class="features_items my-account-page"><!--features_items-->
        <h2 class="title text-center">@T("Account.MyAccount") - @T("Account.CustomerAddresses.Edit")</h2>
        <div class="custom-page-box-div">
            @{
                    var dataDictAddress = new ViewDataDictionary();
                    //Merge ModelState (required for validation)
                    dataDictAddress.ModelState.Merge(ViewData.ModelState);
                    dataDictAddress.TemplateInfo.HtmlFieldPrefix = "Address";
                    @Html.Partial("_CreateOrUpdateAddress", Model.Address, dataDictAddress)          
            }
            <div class="row">
                <div class="col-sm-12">
                    <div class="buttons pull-right">
                    <input type="submit" class="button-1 save-address-button btn btn-primary" value="@T("Common.Save")" />                       
                </div>    
                </div>
            </div>
                
        </div>
    </div>

    
}